<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<s:form id="update_ad_form" namespace="/control/mapping" action="ad_auditing.go">
		<s:hidden id="type" name="type" value=""></s:hidden>
		<table>
			<thead>
				<tr>
					<td colspan="6">
						<font>当前页:第${pageView.currentpage}页 | 总记录数:${pageView.totalrecord}条 | 每页显示:${pageView.maxrecord}条 | 总页数:${pageView.totalpage}页</font>　
						<br/>
						<s:iterator begin="pageView.pageindex.startindex" end="pageView.pageindex.endindex" var="pageIndex">
							<s:if test="pageView.currentpage==#pageIndex">
								<b><font color="#00ffff">${pageIndex}</font></b>
							</s:if>
							<s:else> 
								<s:url action="bbs_discuss" namespace="/forward/view" id="discussList">
									<s:param name="bookid" value="bookid"/>
									<s:param name="currentpage" value="pageIndex"/>
								</s:url>
								<a href="#">[${pageIndex}]</a>
							</s:else>
						</s:iterator>
					</td>
				</tr>
				<tr>
					<td>选择</td>
					<td>图片</td>
					<td>名称</td>
					<td>店铺名称</td>
					<td>状态</td>
					<td>留言</td>
				</tr>
			</thead>
			<tbody>
				<s:iterator value="pageView.records" var="book_list">
					<tr>
						<td><input type="checkbox" name="adids" value="${book_list.id}" title="checkedName"/></td>
						<td>
							<div style="width: 80px;height: 80px;overflow: hidden;">
								<img alt="" src="${book_list.logo}" width="80" height="80">
							</div>
						</td>
						<td>${book_list.name}</td>
						<td>xxxx</td>
						<td>
							<s:if test="#book_list.flag==100">等待审核</s:if>
							<s:elseif test="#book_list.flag==200">审核通过</s:elseif>
							<s:else>拒绝广告</s:else>
						</td>
						<td>${book_list.word}</td>
					</tr>
				</s:iterator>
			</tbody>
			<tfoot>
				<tr>
					<td>
						<input type="checkbox" id="allCheckBox" onclick="selectAll()"/>全选
					</td>
					<td>
						<input type="button" value="同意" onclick="pass()"/> 
						<input type="button" value="拒绝" onclick="unpass()"/> 
					</td>
					<td colspan="4">
						<input type="button" value="生成静态的HTML页面"   onclick="changeContent('/control/mapping/ad_adMap.go','ftlName=${ftlName}&htmlName=${htmlName}')"/>
					</td>
				</tr>
			</tfoot>
		</table>
	</s:form>
</body>
</html>